import java.util.Scanner;

/**
 * 参数解析
 */
public class ParsingParameters {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            String line = scanner.nextLine();
            line = line.replaceAll("\"","");
            String[] arr = line.split(" ");
            System.out.println(arr.length);
            for (int i=0; i<arr.length; i++) {
                System.out.println(arr[i]);
            }
        }
    }
}
